﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="staff_lessons_test.aspx.cs"
    Inherits="Catering.UserTraining.SlrCompanyTrainning.staff_lessons_test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../../Style/ZHJG/zhezhao.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../../Style/center.css" />
    <link href="../css/css_common.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div style="padding-left:0px; margin: 10px auto; width: 998px; height: 30px; line-height: 30px; font-size: 13px; font-weight:bold; padding-top: 0px; background: url(/Images/div_h1_bg_02.gif);">
        课程名称：<asp:Label ID="lblLessionName" runat="server" Text=""></asp:Label>
    </div>
    <div>
        <table>
            <tr>
                <td>选择测试题：</td>
                <td>
                    <asp:DropDownList ID="ddl_Test" runat="server"></asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btn_Search" runat="server" class="input_btn_a" Text="确定"  onclick="btn_Search_Click" />
                </td>
                <td><asp:Label ID="lbl_Points" runat="server" Text=""></asp:Label></td>
                <td>
                    <asp:HiddenField ID="hf_TestID" runat="server" />
                    <asp:HiddenField ID="hf_TestName" runat="server" />
                </td>
                <td><asp:Button ID="btn_Save" runat="server" class="input_btn_a" Text="保存结果" onclick="btn_Save_Click" /></td>
                <td><asp:Button ID="btn_Return" runat="server" class="input_btn_a" Text="返回" onclick="btn_Return_Click" /></td>
            </tr>
        </table>
    </div>
    <div>
        <table>
            <asp:Repeater ID="Repeater1" runat="server" 
                onitemdatabound="Repeater1_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td colspan="2"><%#Eval("QueNO")%>.<%#Eval("QueName")%>&nbsp;&nbsp;<%#GetAns(Eval("QueID").ToString())%></td>
                    </tr>
                    <tr>
                        <td width="10">
                            <asp:HiddenField ID="hf_QueType" Value='<%#Eval("QueType") %>' runat="server" />
                            <asp:HiddenField ID="hf_QueID" Value='<%#Eval("QueID") %>' runat="server" />
                        </td>
                        <td>
                            <%if (dt_PurchaseInfo!=null &&dt_PurchaseInfo.Rows.Count>0 && dt_PurchaseInfo.Rows[i_Number]["QueType"].ToString() == "S")
                              { %>
                            <asp:RadioButton ID="R_A" GroupName="S" runat="server" Text='<%#"A."+Eval("QueContentA") %>' /><br />
                            <asp:RadioButton ID="R_B" GroupName="S" runat="server" Text='<%#"B."+Eval("QueContentB") %>' /><br />
                            <asp:RadioButton ID="R_C" GroupName="S" runat="server" Text='<%#"C."+Eval("QueContentC") %>' /><br />
                            <asp:RadioButton ID="R_D" GroupName="S" runat="server" Text='<%#"D."+Eval("QueContentD") %>' />
                            <%}
                              else if (dt_PurchaseInfo != null && dt_PurchaseInfo.Rows.Count > 0 && dt_PurchaseInfo.Rows[i_Number]["QueType"].ToString() == "M")
                              { %>
                            <asp:CheckBox ID="C_A" GroupName="S" runat="server" Text='<%#"A."+Eval("QueContentA") %>' /><br />
                            <asp:CheckBox ID="C_B" GroupName="S" runat="server" Text='<%#"B."+Eval("QueContentB") %>' /><br />
                            <asp:CheckBox ID="C_C" GroupName="S" runat="server" Text='<%#"C."+Eval("QueContentC") %>' /><br />
                            <asp:CheckBox ID="C_D" GroupName="S" runat="server" Text='<%#"D."+Eval("QueContentD") %>' />
                            <%} %>
                            <% i_Number++; %>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    </form>
</body>
</html>
